package org.bot.api.flow;

public enum FlowJudgeType {
    YES,
    NO;

    public static String judgeType(String type) {
        if (type == null) {
            return FlowJudgeType.YES.name();
        }
        switch (type) {
            case "no":
                return FlowJudgeType.NO.name();
            case "yes":
                return FlowJudgeType.YES.name();
            default:
                return type;
        }
    }
}
